package com.itheima.reggie;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.transaction.annotation.EnableTransactionManagement;


@Slf4j

@EnableCaching

//在SpringBoot项目中, 在引导类/配置类上加了该注解后,
// 会自动扫描项目中(当前包及其子包下)的@WebServlet , @WebFilter , @WebListener 注解
// 自动注册Servlet的相关组件
@ServletComponentScan
@EnableTransactionManagement
@SpringBootApplication
public class ReggieApplication {

    public static void main(String[] args) {
        SpringApplication.run(ReggieApplication.class, args);
    }

}
